{template admin/header}
	<form action="manage.php?m=business" method="post" name="search">
	<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
		<tr class="header">
			<td colspan="2">搜索商家</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">
			商家名称:
			</td>
			<td class="altbg2">
			<input name="name" type="text" id="name" value="{$name}" size="40">		
			</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">
			企业法人:
			</td>
			<td class="altbg2">
			<input name="legal_person" type="text" id="legal_person" value="{$legal_person}" size="40">		
			</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">&nbsp;
			</td>
			<td class="altbg2">
				<button name="do" value='' type="submit" class="button">搜索一下</button>&nbsp;&nbsp;
				<button class="button" type="button" onclick="window.location.href='manage.php?m=business';return false;">全部商家</button>
			</td>
		</tr>
		
	</table>
	</form>

	<form method="post" action="manage.php?m=business&a=do_delete">
	  <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="120" height="30" align="right">内容筛选查看：</td>
          <td width="120" align="right"><a href="manage.php?m=business">所有商家</a></td>
        </tr>
      </table>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
			<tr class="header">
				<td width="30">
				<input class="checkbox" type="checkbox" name="chkall" onclick="checkall(this.form,'ids')" ></td>	
				<td>名称</td>
				<td>法人</td>
				<td>logo</td>
				<td>服务/环境/价格评分</td>
				<td>地址</td>
				<td>经度/纬度</td>
				<td width="40">已审批？</td>
				<td width="120">操作</td>
			</tr>
			<!--{loop $list $item}-->
			<tr align="center">
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					<input class="checkbox" type="checkbox" name="ids[]" value="$item[id]" >
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					<a href="manage.php?m=business&a=modify&id={$item[id]}">{$item[name]}</a>
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					{$item[legal_person]}
				</td>
				<td class="altbg2" style="border-bottom:1px dashed #ccc">
					<!-- {if $item[image]} -->
					<a href="{$item[image]}" target="_blank"><img width="50" height="50" src="{$item[image]}"></a><br />
					<!-- {/if} -->
				</td>
				<td class="altbg2" style="border-bottom:1px dashed #ccc">
					{$item[service_score]} / {$item[env_score]} / {$item[price_score]}
				</td>
				<td class="altbg2" style="border-bottom:1px dashed #ccc">
					{$item[address]}
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					{$item[longitude]} / {$item[latitude]}
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					<!--{if $item[is_validate] }-->
					是
					<!--{else}-->
					否
					<!--{/if}-->
				</td>
				<td class="altbg2" style="border-bottom:1px dashed #ccc">
					<a href="manage.php?m=business_special&bid={$item[id]}" title="查看商家特色菜">特色菜</a>&nbsp;|&nbsp;
					<a href="manage.php?m=customer_comment&hid={$item[id]}" title="查看评论">评论</a>&nbsp;|&nbsp;
					<a href="manage.php?m=customer_complaint&bid={$item[id]}" title="查看游客投诉">投诉</a>&nbsp;|&nbsp;<br />
					<a href="manage.php?m=business&a=modify&id={$item[id]}">编辑</a>&nbsp;|&nbsp;
					<a href="manage.php?m=business&a=do_delete&ids={$item[id]}" onclick="return delete_confirm();">删除</a>&nbsp;
				</td>
			</tr>
			<!--{/loop}-->
			
			<!--{if $page_html}-->
			<tr align="center">
				<td colspan="4" class="altbg1">
					{$page_html}
				</td>
			</tr>
			<!--{/if}-->
		</table>
	
		<center><input class="button" type="submit" name="cronssubmit" value="删除所选" onclick="return delete_confirm();"></center>
	</form>
	
	<br />

<script type="text/javascript" src="templates/default/js/travel_info.js"></script>